<template>
  <div class="app">
    <topbar ref="child1"/>
    <div class="container">

      <div class="Lp">

        <div class="zhishibar">{{cateInfo.oneName}}</div>
        <div class="menu1">

          <li v-for="(cateTwo,index) in cateInfo.dataTwo" :key="index">
            <nuxt-link :to="'/list/id?id='+cateTwo.twoCode">
              <span @click="showToggle('twoMenu'+index)" v-show="cateTwo.twoCode == cateUniqueCode"
                    style="background-color: #f6f6f6;font-weight: bold">{{cateTwo.twoName}}</span>
              <span @click="showToggle('twoMenu'+index)"
                    v-show="cateTwo.twoCode != cateUniqueCode">{{cateTwo.twoName}}</span>
            </nuxt-link>
            <div class="menu2" v-show="false" :id="'twoMenu'+index">
              <nuxt-link :to="'/list/id?id='+cateThree.threeCode" v-for="cateThree in cateTwo.dataThree">
                <div class="aaa" v-show="cateThree.threeCode == cateUniqueCode"
                     style="background-color: #f6f6f6;font-weight: bold">{{cateThree.threeName}}
                </div>
                <div class="aaa" v-show="cateThree.threeCode != cateUniqueCode">{{cateThree.threeName}}</div>
              </nuxt-link>
            </div>
          </li>
        </div>


      </div>


      <!-- 左右分离-->
      <div class="Rp bg-ffffff">
        <!-- 栏目说明 -->
        <div class="column_dec" v-show='havedes'>
          <img v-bind:src="poster" alt="">
          <div class="name">{{name}}</div>
          <div class="dec">
            <div v-if="aa > 100">{{ cc }}...<span class="checkdec hand" @click="seeall">查看全部简介</span></div>
            <div v-if="aa <= 100">{{ bb }}</div>
          </div>
        </div>

        <!-- 统计条数 -->
        <div class="hmenu">
          <div class="left">全部文章</div>
          <el-container v-loading="fullscreenLoading" element-loading-background="rgba(0, 0, 0, 0.8)"></el-container>
          <div class="right">{{articleInfo.articleNum}}条内容</div>
        </div>
        <!-- 收藏循环开始 -->
        <div class="one" v-for="(article,index) in articleInfo.list">
          <nuxt-link target="_blank" :to="'/article/?collkey='+ article.collkey">
            <div class="title">{{article.title}}</div>
            <img v-if="article.poster.length > 0" v-bind:src="article.poster" alt="">
            <p>&nbsp;&nbsp;&nbsp;&nbsp;{{article.content}}……<span class="readmore">阅读全文</span></p>
          </nuxt-link>
          <div class="zcinfo">
            <span>{{article.magezineName}} {{article.year}}年第{{article.issue}}期 栏目 | {{article.columns}} 文 <span
              v-show="article.author != null">| {{article.author}}</span></span>
            <span class="zan_down0" @click="zandown(article.collkey,1,index)" v-if="article.isDisagree==0"> </span>
            <span class="zan_down1" @click="zandown(article.collkey,0,index)" v-if="article.isDisagree==1"> </span>
            <span class="zan_up0" @click="zanup(article,1,index)"
                  v-if="article.isAgree==0">赞同 {{article.agreeNum}} </span>
            <span class="zan_up1" @click="zanup(article,0,index)"
                  v-if="article.isAgree==1">已赞同 {{article.agreeNum}} </span>
            <span class="cang0" @click="collect(article,1,index)" v-if="article.isCollect==0">{{article.likeNum}}</span>
            <span class="cang1" @click="collect(article,0,index)" v-if="article.isCollect==1">{{article.likeNum}}</span>
          </div>
        </div>
        <el-container v-loading="fullscreenLoading1" element-loading-background="rgba(0, 0, 0, 0.8)"></el-container>
        <!-- 分页 -->
        <div class="pagepart">
          <el-pagination
            @current-change="handleCurrentChange"
            background
            layout="prev, pager, next"
            :current-page="currentPage"
            :page-size="10"
            :total="totalNum">
          </el-pagination>
        </div>

      </div>

    </div>

    <div class="gap100"></div>

    <!--  <Bottombar/> -->

  </div>
</template>

<script>
  import Topbar from '~/components/Topbar.vue'
  import Bottombar from '~/components/Bottombar.vue'
  import axios from 'axios'
  import qs from 'qs'

  export default {
    components: {
      Topbar,
      Bottombar,
    },
    data() {
      return {
        name: '',
        poster: '',
        user: '',
        totalNum: 1,
        currentPage: 1,
        pageCount: 0,
        cateUniqueCode: '',
        cateInfo: '',
        cateInfo1: {},
        articleInfo: '',
        havedes: true,
        fullscreenLoading: false,
        fullscreenLoading1: false,
        isShare: false,
        aa: 50,
        cc: '',
        bb: '',
        //bb:'由于没有出租屋，我们便在郊区靠山处，向遗世独立的寺庙借了两间房，一直住到第六年父亲调入松江中学为止。向遗世独立的寺庙借了两间房，一直住到第六年父亲调入松江中学为止。我结婚是到松江以后的事了，那年秋天，我已二十四岁，在当时算是晚婚。母亲很早就去世了，父亲又是顽固不化的学者，对世俗的东西根本不屑一顾。',
      }
    },
    mounted() {
      this.user =  JSON.parse(localStorage.getItem("user"));
      // this.getSessionUser();
      this.getCateMenu();
      this.getArticleList();
      this.insertStatisticRecord();//统计记录
    },
    // //监听路由，路由变化时执行，解决调到本页面不刷新的问题
    watch: {
      "$route": function () {
        this.getCateMenu();
        this.getArticleList();
      }
    },
    methods: {
      getSessionUser() {

        let key = localStorage.getItem("user_unique_code");
        console.log("key:" + key);
        if (key != null && key != "" && key != undefined) {
          console.log("key " + key)
          axios.post('https://wenku.qikan.com:11000/admin/lib/getTokenByUserId.html', qs.stringify({'key': key})
          )
            .then((response) => {
              console.log("resultuser " + response.data);
              let result = response.data;
              if (result.code == 1) {
                console.log("user1:" + result.data.trim());
                this.user = JSON.parse(result.data.trim());
                console.info("usermsg " + this.user)
                // if(this.user!=null && this.user!="" && this.user!=undefined){
                //   // this.poster=this.user.poster;
                //   // console.log("uuaa  "+this.user.mobile)
                //   // this.isLogin=true;
                // }
                this.getCateMenu();
                this.getArticleList();
                this.insertStatisticRecord();//统计记录
              } else {
                this.getCateMenu();
                this.getArticleList();
                this.insertStatisticRecord();//统计记录
              }
            })
            .catch((error) => {
              console.log(error)
            })
        } else {
          this.getCateMenu();
          this.getArticleList();
          this.insertStatisticRecord();//统计记录
        }


      },
      insertStatisticRecord() {
        var vm = this;
        var userCode = '';
        if (vm.user != null && vm.user != '' && vm.user != undefined) {
          userCode = vm.user.unique_code
        }
        //新增频道列表页浏览记录
        axios.get('https://wenku.qikan.com:11000/statistic/insertBrowseRecord.html?type=2&userCode=' + userCode)
          .then(function (response) {
            console.log(response);
          });
        //新增频道点击记录
        var cateUniqueCode = this.$route.query.id;
        axios.get('https://wenku.qikan.com:11000/statistic/insertCateClickRecord.html?cateUniqueCode=' + cateUniqueCode + '&userCode=' + userCode)
          .then(function (response) {
            console.log(response);
          })
      },
      collect(rearticle, type, index) {
        var vm = this;
        console.log("user:" + this.user);
        if (this.user != null && this.user != "" && this.user != undefined) {
          var original = rearticle.magezineName + rearticle.year + '年第' + rearticle.issue + '期';
          axios.get('https://wenku.qikan.com:11000/article/collect?collkey=' + rearticle.collkey + "&userCode=" + vm.user.unique_code + "&type=" + type
            + '&author=' + rearticle.author + '&title=' + rearticle.title + '&original=' + original)
            .then(function (res) {
              vm.articleInfo.list[index].isCollect = res.data.data.type;
              vm.articleInfo.list[index].likeNum = res.data.data.collectNum;
            })
        } else {
          localStorage.setItem("key", vm.cateUniqueCode);
          var timestamp = Date.parse(new Date())
          localStorage.setItem("failuretime", timestamp + 60000);
          localStorage.setItem("jumpurl", "/list/id")
          this.$refs.child1.godenglu();
        }
      },

      zanup(rearticle, type, index) {
        var vm = this;
        if (this.user != null && this.user != "" && this.user != undefined) {
          var original = rearticle.magezineName + rearticle.year + '年第' + rearticle.issue + '期';
          axios.get('https://wenku.qikan.com:11000/article/agree?collkey=' + rearticle.collkey + "&userCode=" + vm.user.unique_code + "&type=" + type
            + '&author=' + rearticle.author + '&title=' + rearticle.title + '&original=' + original)
            .then(function (res) {
              console.log(res.data.data);
              vm.articleInfo.list[index].isAgree = res.data.data.type;
              if (res.data.data.type = 1) {
                vm.articleInfo.list[index].isDisagree = 0;
              } else {
                vm.articleInfo.list[index].isDisagree = 1;
              }
              // vm.articleInfo.list[index].isAgree = 0;
              vm.articleInfo.list[index].agreeNum = res.data.data.agreeNum;
            })
        } else {
          localStorage.setItem("key", vm.cateUniqueCode);
          var timestamp = Date.parse(new Date())
          localStorage.setItem("failuretime", timestamp + 60000);
          localStorage.setItem("jumpurl", "/list/id")
          this.$refs.child1.godenglu();
        }
      },

      zandown(collkey, type, index) {
        var vm = this;
        if (this.user != null && this.user != "" && this.user != undefined) {
          axios.get('https://wenku.qikan.com:11000/article/disagree?collkey=' + collkey + "&userCode=" + vm.user.unique_code + "&type=" + type)
            .then(function (res) {
              console.log(res.data.data);
              vm.articleInfo.list[index].isDisagree = res.data.data.type;
              if (res.data.data.type == 1) {
                vm.articleInfo.list[index].isAgree = 0;
              }
              vm.articleInfo.list[index].agreeNum = res.data.data.agreeNum;
              // vm.articleInfo.list[index].isAgree = 0;
            })
        } else {
          localStorage.setItem("key", vm.cateUniqueCode);
          var timestamp = Date.parse(new Date())
          localStorage.setItem("failuretime", timestamp + 60000);
          localStorage.setItem("jumpurl", "/list/id")
          this.$refs.child1.godenglu();
        }
      },

      handleCurrentChange(val) {
        this.fullscreenLoading1 = true;
        this.pageCount = (val - 1) * 10;
        this.currentPage = val;
        this.getArticleList();
      },

      getCateMenu() {
        var vm = this;
        vm.cateUniqueCode = this.$route.query.id;
        axios.get('https://wenku.qikan.com:11000/cate/menu?cateUniqueCode=' + vm.cateUniqueCode)
          .then(function (res) {
            vm.cateInfo = res.data.data;
            vm.name = res.data.data.name;
            vm.poster = res.data.data.poster;
            vm.bb = res.data.data.describle;
            vm.aa = vm.bb.length;
            console.log(vm.aa);
            if (vm.aa > 100) {
              vm.cc = vm.bb.substring(0, 100);
            }
            //延后执行
            vm.$nextTick(function () {
              vm.showThree();
            });
          })
      },
      showThree() {
        var cateTwo = this.cateInfo.dataTwo;
        for (var i = 0; i < cateTwo.length; i++) {
          var cateThree = cateTwo[i].dataThree;
          for (var j = 0; j < cateThree.length; j++) {
            if (cateThree[j].threeCode == this.cateUniqueCode) {
              document.getElementById('twoMenu' + i).style.display = "block";
            }
          }
        }
      },
      getArticleList() {
        var vm = this;
        vm.fullscreenLoading = true;
        vm.cateUniqueCode = this.$route.query.id;
        if (this.user != null && this.user != "" && this.user != undefined) {
          axios.get('https://wenku.qikan.com:11000/article/list?startDoc=' + vm.pageCount + '&cateUniqueCode=' + vm.cateUniqueCode + '&userCode=' + vm.user.unique_code)
            .then(function (res) {
              console.log(res);
              vm.totalNum = res.data.data.articleNum;
              vm.articleInfo = res.data.data;
              vm.fullscreenLoading = false;
              vm.fullscreenLoading1 = false;
            })
        } else {
          axios.get('https://wenku.qikan.com:11000/article/list?startDoc=' + vm.pageCount + '&cateUniqueCode=' + vm.cateUniqueCode + '&userCode=' + "")
            .then(function (res) {
              console.log(res);
              vm.totalNum = res.data.data.articleNum;
              vm.articleInfo = res.data.data;
              vm.fullscreenLoading = false;
              vm.fullscreenLoading1 = false;
            })
        }

      },
      // toggleShare(){
      //   this.isShare=!this.isShare;
      // },
      seeall() {
        this.aa = 50;
      },
      showToggle(obj) {
        const style = document.getElementById(obj).style.display;
        if (style == "none") {//展开二级
          var doms = document.getElementsByClassName("menu2");
          console.log(doms.length);
          for (var i = 0; i < doms.length; i++) {
            var id1 = doms[i].id;
            if (id1 == obj) {
              document.getElementById(id1).style.display = "block";
            } else {
              document.getElementById(id1).style.display = "none";
            }
          }
        } else {//收起二级
          document.getElementById(obj).style.display = "none";
        }
      },


    }
  }
</script>

<style scoped>

  .menuDiv {
    overflow: hidden;
    width: 270px;
    background: #fff;
    padding: 0;
  }

  .menuDiv a {
    text-decoration: none;
    color: #225599;
    width: 270px;
    height: 36px;
    line-height: 36px;
    background: url('../../assets/images/arrow-right-blue.png') 250px center no-repeat;
    background-size: 6px 13px;
    border-bottom: 1px solid #F0F2F7;
    font-size: 14px;
  }

  .menuDiv li, .menuDiv ul {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 270px;
  }

  .menuDiv > ul > li > ul {
    display: none;
  }

  .menuDiv > ul > li:hover ul {
    display: block;
  }

  .menuDiv > ul > li > a {
    display: block;
    padding-left: 10px;
  }

  .menuDiv > ul > li > ul > li > a {
    display: block;
    padding-left: 30px;
  }

  .menu1 {
    width: 270px;
    height: auto;
    background-color: #fff;
    font-size: 14px;
  }

  .menu1 li {
    width: 270px;
    line-height: 36px;
    border-bottom: 1px solid #F0F2F7;
  }

  .menu1 li span {
    color: #225599;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    background: url('../../assets/images/arrow-right-blue.png') 250px center no-repeat;
    background-size: 6px 13px;
    padding: 0 7px 0 20px;
  }

  .menu1 li span:hover {
    background: #f6f6f6 url('../../assets/images/arrow-right-blue.png') 250px center no-repeat;
    background-size: 6px 13px;
  }

  .menu2 {
    width: 250px;
    background-color: #fff;
  }

  .menu2 a, .menu1 a {
    color: #225599;
  }

  .menu2 a .aaa {
    list-style: none;
    width: 270px;
    height: 36px;
    display: block;
    line-height: 36px;
    border-bottom: 1px solid #F0F2F7;
    background: url('../../assets/images/arrow-right-blue.png') 250px center no-repeat;
    background-size: 6px 13px;
    padding-left: 30px;
  }

  .menu2 a .aaa:hover {
    background: #f6f6f6 url('../../assets/images/arrow-right-blue.png') 250px center no-repeat;
    background-size: 6px 13px;
  }

  .readmore {
    display: inline-block;
    color: #175199;
    font-size: 14px;
    line-height: 24px;
    width: 70px;
    background: url('../../assets/images/more-down-arrow.png') right center no-repeat;
    background-size: 12px 8px;
  }

  .Rp {
    width: 850px;
    display: inline-block;
    float: right;
    margin-top: 20px;
  }

  .Lp {
    width: 270px;
    display: inline-block;
    float: left;
    overflow: hidden;
    margin-top: 20px;
    margin-right: 20px;
  }

  .column_dec {
    width: 100%;
    min-height: 166px;
    border-bottom: 20px solid #f0f2f7;
    clear: both;
    padding: 15px 30px 13px 14px;
  }

  /*.column_dec img{width: 179px; height: 118px; margin-right:20px; float: left;}*/
  .column_dec img {
    width: 179px;
    height: 118px;
    margin-right: 20px;
    float: left;
    border-radius: 3px;
  }

  .column_dec .name {
    font-size: 18px;
    color: #0080FF;
    line-height: 40px;
    font-weight: 600;
  }

  .column_dec .dec {
    font-size: 16px;
    color: #1B1B1B;
    text-align: justify;
    line-height: 30px;
  }

  .checkdec {
    width: 110px;
    font-size: 16px;
    line-height: 30px;
    color: #175199;
    background: url('../../assets/images/more-down-arrow.png') right center no-repeat;
    background-size: 12px 8px;
    display: inline-block;
  }

  .hmenu {
    border-bottom: 1px solid #F0F2F7;
    width: 100%;
    height: 52px;
    clear: both;
    padding: 0 15px;
  }

  .hmenu .left {
    color: #0080ff;
    line-height: 50px;
    height: 50px;
    width: 70px;
    margin-right: 43px;
    display: inline-block;
    font-weight: 600;
    border-bottom: 3px solid #0084FF;
  }

  .hmenu .right {
    display: inline-block;
    float: right;
    background: #EFF6FA;
    border-radius: 3px;
    height: 30px;
    padding: 0 10px;
    line-height: 30px;
    font-size: 14px;
    color: #678DC1;
    text-align: center;
    margin-top: 10px;
  }

  /*.one{ width: 100%; height: auto;  background-color: #fff; padding: 19px 30px 15px 15px;border-bottom: 3px solid #f2f5f7; }*/
  /*.one .title{font-size: 18px;color: #1A1A1A; line-height: 20px; width: 100%; margin-bottom: 14px; clear: both; font-weight: 600;}*/

  .one {
    width: 100%;
    z-index: 5;
    height: auto;
    transition: all .2s;
    background-color: #fff;
    padding: 19px 30px 15px 15px;
    border-bottom: 3px solid #f2f5f7;
  }

  /*.one:hover{box-shadow:0 0 25px 2px rgb(0,0,0) ;transition: .3s;z-index: 99999;}*/
  .one:hover {
    box-shadow: 0 0 25px 2px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 0 25px 2px rgba(0, 0, 0, 0.2);
    -pie-background: rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 0 25px 2px rgba(0, 0, 0, 0.2);
    transition: .3s;
    z-index: 99999
  }

  .one .title {
    font-size: 18px;
    color: #1A1A1A;
    line-height: 30px;
    width: 100%;
    margin-bottom: 6px;
    clear: both;
    font-weight: 600;
  }

  .one p {
    font-size: 14px;
    color: #1A1A1A;
    text-align: justify;
    line-height: 24px;
    max-height: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .one img {
    float: left;
    margin-right: 18px;
    width: 178px;
    height: 105px;
    border-radius: 3px;
  }

  .info {
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: #8590A6;
    margin-top: 10px;
    position: relative;
  }

  .zan {
    border-radius: 3px;
    height: 25px;
    line-height: 25px;
    padding: 0 5px;
    padding-left: 17px;
    margin-right: 10px;
  }

  .btn-up {
    background: #E8F3FF url('../../assets/images/zan-up.png') 6px 5px no-repeat;
    background-size: 8px 8px;
  }

  .btn-down {
    background: #E8F3FF url('../../assets/images/zan-down.png') 6px 5px no-repeat;
    background-size: 8px 8px;
  }

  .btn-sc1 {
    width: 16px;
    height: 16px;
    background: url('../../assets/images/icon-shoucang1.png');
    background-size: 16px 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 7px;
  }

  .btn-sc0 {
    width: 16px;
    height: 16px;
    background: url('../../assets/images/icon-shoucang0.png');
    background-size: 16px 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 7px;
  }

  .btn-print {
    width: 16px;
    height: 16px;
    background: url('../../assets/images/icon-print.png');
    background-size: 16px 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 7px;
  }

  .btn-share {
    width: 18px;
    height: 16px;
    background: url('../../assets/images/icon-share.png');
    background-size: 18px 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 7px;
  }


  .share {
    position: relative;
  }

  .sharelevel {
    width: 137px;
    height: 182px;
    text-align: left;
    position: absolute;
    z-index: 200;
    top: 32px;
    left: 0;
    background: #FCFCFC;
    border: 1px solid #F2F2F2;
    box-shadow: 0 2px 4px 0 rgba(181, 181, 181, 0.50);
    border-radius: 2px;
    padding: 10px 15px;
  }

  .sharelevel .list {
    width: 100%;
    height: 40px;
    line-height: 40px;
  }

  .icon-copy {
    width: 20px;
    height: 20px;
    background: url('../../assets/images/share-copy.png');
    background-size: 20px 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }

  .icon-qq {
    width: 20px;
    height: 20px;
    background: url('../../assets/images/share-qq.png');
    background-size: 20px 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }

  .icon-weibo {
    width: 20px;
    height: 20px;
    background: url('../../assets/images/share-weibo.png');
    background-size: 20px 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }

  .icon-weixin {
    width: 20px;
    height: 20px;
    background: url('../../assets/images/share-weixin.png');
    background-size: 20px 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }

  .pagepart {
    width: 100%;
    height: 60px;
    margin: 40px 0;
    text-align: center;
  }

  /*.zhishibar{ height: 40px; width: 270px;background-image: linear-gradient(-180deg, #1C7DE1 0%, #1674D4 52%, #0866C2 98%, rgba(232,56,41,0.80) 100%);border: 1px solid #0D6EB8;box-shadow: inset 0 1px 0 0 #358BE5;font-size: 14px;*/
  /*color: #FFFFFF; line-height: 40px; padding-left: 39px; position: relative; }*/
  .zhishibar {
    height: 40px;
    width: 270px;
    background-image: linear-gradient(-180deg, #1C7DE1 0%, #1674D4 52%, #0866C2 98%, rgba(232, 56, 41, 0.80) 100%);
    border: 1px solid #0D6EB8;
    box-shadow: inset 0 1px 0 0 #358BE5;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 40px;
    padding-left: 39px;
    position: relative;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
  }

  .zhishibar:after {
    content: '';
    background: url('../../assets/images/icon-menulist.png') left top no-repeat;
    background-size: 19px 14px;
    position: absolute;
    z-index: 3;
    left: 10px;
    top: 14px;
    width: 19px;
    height: 14px;
  }

  .readmore {
    display: inline-block;
    color: #175199;
    font-size: 14px;
    line-height: 24px;
    width: 70px;
    background: url('../../assets/images/more-down-arrow.png') right center no-repeat;
    background-size: 12px 8px;
  }

  /*.zcinfo{ width: 100%;  text-align: right;font-size: 12px;margin-top: 10px; position: relative; height: 25px;}*/
  .zcinfo {
    width: 100%;
    text-align: left;
    font-size: 12px;
    margin-top: 10px;
    position: relative;
    height: 25px;
    color: #8590A6;
  }

  .zan_up0 {
    border-radius: 3px;
    height: 25px;
    line-height: 25px;
    padding: 0 5px;
    padding-left: 17px;
    margin-right: 6px;
    display: inline-block;
    background: #E8F3FF url('../../assets/images/zan-up.png') 6px 8px no-repeat;
    background-size: 8px 8px;
    float: right;
    color: #0084ff;
    cursor: pointer;
  }

  .zan_up1 {
    border-radius: 3px;
    height: 25px;
    line-height: 25px;
    padding: 0 5px;
    padding-left: 17px;
    margin-right: 6px;
    display: inline-block;
    background: #0084ff url('../../assets/images/zan-up1.png') 6px 8px no-repeat;
    background-size: 8px 8px;
    float: right;
    color: #fff;
    cursor: pointer;
  }

  .zan_down0 {
    border-radius: 3px;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    padding-left: 17px;
    margin-right: 10px;
    display: inline-block;
    background: #E8F3FF url('../../assets/images/zan-down.png') 10px 8px no-repeat;
    background-size: 8px 8px;
    float: right;
    color: #0084ff;
    cursor: pointer;
  }

  .zan_down1 {
    border-radius: 3px;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    padding-left: 17px;
    margin-right: 10px;
    display: inline-block;
    background: #0084ff url('../../assets/images/zan-down1.png') 10px 8px no-repeat;
    background-size: 8px 8px;
    float: right;
    color: #fff;
    cursor: pointer;
  }

  .cang0 {
    height: 25px;
    line-height: 25px;
    background: url('../../assets/images/icon-shoucang0.png') left center no-repeat;
    background-size: 14px 14px;
    display: inline-block;
    margin-right: 10px;
    margin-left: 7px;
    float: right;
    padding-left: 20px;
    color: #8590A6;
    cursor: pointer;
  }

  .cang1 {
    height: 25px;
    line-height: 25px;
    background: url('../../assets/images/icon-shoucang1.png') left center no-repeat;
    background-size: 14px 14px;
    display: inline-block;
    margin-right: 10px;
    margin-left: 7px;
    float: right;
    padding-left: 20px;
    color: #0084ff;
    cursor: pointer;
  }
</style>
